/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package managerBean;

import java.io.IOException;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.context.FacesContext;

/**
 *
 * @author WenYong
 */
@ManagedBean(name = "addUnstructuredContentManager")
@RequestScoped
public class AddUnstructuredContentManager {

    /** Creates a new instance of AddUnstructuredContentManager */
    public AddUnstructuredContentManager() {
    }
    
    public void TemplateOneSelected() throws IOException
    {
        FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("TemplateSelected", 1);
        FacesContext.getCurrentInstance().getExternalContext().redirect("addUnstructuredContentTemplateElements.xhtml");
    }
     public void TemplateTwoSelected() throws IOException
    {
        FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("TemplateSelected", 2);
        FacesContext.getCurrentInstance().getExternalContext().redirect("addUnstructuredContentTemplateElements.xhtml");
    }
      public void TemplateThreeSelected() throws IOException
    {
        FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("TemplateSelected",3);
        FacesContext.getCurrentInstance().getExternalContext().redirect("addUnstructuredContentTemplateElements.xhtml");
    }
       public void TemplateFourSelected() throws IOException
    {
        FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("TemplateSelected", 4);
        FacesContext.getCurrentInstance().getExternalContext().redirect("addUnstructuredContentTemplateElements.xhtml");
    }
        public void TemplateFiveSelected() throws IOException
    {
        FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("TemplateSelected", 5);
        FacesContext.getCurrentInstance().getExternalContext().redirect("addUnstructuredContentTemplateElements.xhtml");
    }
         public void TemplateSixSelected() throws IOException
    {
        FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("TemplateSelected", 6);
        FacesContext.getCurrentInstance().getExternalContext().redirect("addUnstructuredContentTemplateElements.xhtml");
    }
         
}
